<img src="/images/numonyx-logo-tag.gif" />
<table width="100%" height="30" border="0">
	<tr class="mainmenu">
		<td width="50">Home > </td>
		<td>Tasks > </td>
	</tr>
</table>
<table border="0">
	<tr>
		<td width="200" height="100%" valign="top">
			<table border="0">
				<tr class="menu" height="50"><td width="200"><%=link_to "New Dummy", '/tasksets/new'%></td></tr>
				<tr class="menu" height="50"><td width="200">menu</td></tr>
				<tr class="menu" height="50"><td width="200">menu</td></tr>
				<tr class="menu" height="50"><td width="200">menu</td></tr>
				<tr class="menu" height="50"><td width="200">menu</td></tr>
			</table>
		</td>
		<td>
<table border="0">
  <tr class="label">
    <th>Id</th>
    <th>Runner</th>
    <th>Stage</th>
    <th>Status</th>
    <th>Command</th>
    <th>Pid</th>
    <th>Updatetime</th>
    <th>Sid</th>
    <th>Operation</th>
  </tr>

<% for task in @tasks %>
  <tr height="30" class="<%= alter_color_for_stage(task.stage) %>">
    <td><%=link_to task.id, task %></td>
    <td><%=h task.rid %></td>
    <td><%=h task.stage %></td>
    <td><%=h task.status %></td>
    <td><%=h task.command %></td>
    <td><%=h task.pid %></td>
    <td><%=h task.updateTime %></td>
    <td><%=h task.sid %></td>
    <td>
	 <%= link_to image_tag("schedule.jpg", {:border=>0, :size=>"40x40"}), 'tasks/schedule/'+task.id.to_s%>&nbsp;
	 <%= link_to image_tag("stop.jpg", {:border=>0, :size=>"40x40"}), 'tasks/stop/'+task.id.to_s%>&nbsp;
	 <%= link_to image_tag("reset.jpg", {:border=>0, :size=>"40x40"}), 'tasks/reset/'+task.id.to_s%>
	</td>
  </tr>
<% end %>
</table>
</td>
</tr>
</table>

